<?php
include_once("header.php");
?>
<h3>Alias</br>
<?php
$query=mysql_query("SELECT * FROM forwardings ORDER BY source ASC");
$nForwardings=mysql_num_rows($query);
echo "System have $nForwardings Alias";
echo "<br /><h4><a href='alias_new.php'><img src='images/alias.png' border='0'>Click here to create a new alias</a></h4>";
if($nForwardings > 0)
{
/// start div
	echo "<center>
		<div style='background: #cccccc; width: 500px;'>
			Source <img src='images/arrow_right.png'> Destination

		</div>
		</center>
		";

/// end div
while($forwarding = mysql_fetch_array($query))
{
	echo "<center>
		<div style='background: #ccc; width: 500px; font-size: 12px; text-align: left; margin: 2px; padding: 2px;'>
			<a href='delete_alias.php?id=$forwarding[2]' title='Delete alias'><img src='images/del.png'></a> &nbsp;

			$forwarding[0] <img src='images/arrow_right.png'> $forwarding[1]<br>


		</div>
		</center>";
}
}
else
{ echo "0 Alias<br> Create new Alias! <a href='alias_new.php'><img src='images/alias.png' border='0'></a>";}
?>
<br /><br />
<br /><br />
<?php
include_once("footer.php");
?>
